import request from '@/utils/request'

// 查询验券记录列表
export function listVoucherVerification(query) {
  return request({
    url: '/app/voucherVerification/list',
    method: 'get',
    params: query
  })
}

// 查询验券记录详细
export function getVoucherVerification(id) {
  return request({
    url: '/app/voucherVerification/' + id,
    method: 'get'
  })
}

// 新增验券记录
export function addVoucherVerification(data) {
  return request({
    url: '/app/voucherVerification',
    method: 'post',
    data: data
  })
}

// 修改验券记录
export function updateVoucherVerification(data) {
  return request({
    url: '/app/voucherVerification',
    method: 'put',
    data: data
  })
}

// 删除验券记录
export function delVoucherVerification(id) {
  return request({
    url: '/app/voucherVerification/' + id,
    method: 'delete'
  })
}
